package com.lecyon.farm.service;

import com.lecyon.farm.common.enums.ExcelFileEnum;

import javax.validation.constraints.NotNull;
import java.io.IOException;
import java.util.List;

/**
 * Excel操作相关 Service
 *
 * @author Yao Zheng
 * @Date 2019/10/18 11:01
 */
public interface IExcelService {

    /**
     * 导出excel
     *
     * @param list
     * @param excelFileEnum
     * @return
     * @throws IOException
     */
    String exportExcel(List<?> list, @NotNull ExcelFileEnum excelFileEnum) throws IOException;

}
